﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
namespace BanmaytinhDAL
{
    public class KhohangInfo
    {
        private string _Makho;
        private string _Tenkho;
        private string _Diachi;


        public string Makho { get { return _Makho; } set { _Makho = value; } }
        public string Tenkho{ get { return _Tenkho; } set { _Tenkho = value; } }
        public string Diachi { get { return _Diachi; } set { _Diachi = value; } }

        public KhohangInfo KhohangIDataReader(IDataReader dr)
        {
            BanmaytinhDAL.KhohangInfo obj = new BanmaytinhDAL.KhohangInfo();
            obj.Makho = (dr["Makho"] is DBNull) ? string.Empty : dr["Makho"].ToString();
            obj.Tenkho = (dr["Tenkho"] is DBNull) ? string.Empty : dr["Tenkho"].ToString();
            obj.Tenkho = (dr["Diachi"] is DBNull) ? string.Empty : dr["Diachi"].ToString();

            return obj;


        }
    }
}
